<?php
/* SVN FILE: $Id$ */
/* TcEstadoContrato Test cases generated on: 2009-06-17 23:06:14 : 1245299774*/
App::import('Model', 'TcEstadoContrato');

class TcEstadoContratoTestCase extends CakeTestCase {
	var $TcEstadoContrato = null;
	var $fixtures = array('app.tc_estado_contrato', 'app.tc_contrato');

	function startTest() {
		$this->TcEstadoContrato =& ClassRegistry::init('TcEstadoContrato');
	}

	function testTcEstadoContratoInstance() {
		$this->assertTrue(is_a($this->TcEstadoContrato, 'TcEstadoContrato'));
	}

	function testTcEstadoContratoFind() {
		$this->TcEstadoContrato->recursive = -1;
		$results = $this->TcEstadoContrato->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('TcEstadoContrato' => array(
			'id'  => 1,
			'descripcion'  => 'Lorem ipsum d',
			'created'  => '2009-06-17',
			'modified'  => '2009-06-17',
			'adicionado_por'  => 'Lorem ipsum dolor ',
			'modificado_por'  => 'Lorem ipsum dolor '
			));
			$this->assertEqual($results, $expected);
	}
}
?>